{block name="style"}
<style>
</style>
{/block}
<form class="layui-form layui-card" style="height: 800px;overflow: scroll;" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">选择物流</label>
            <div class="layui-input-block">
                <select class="layui-select" name="trans_type" required>
                    {foreach $trams_types as $k=>$v}
                    {if $k.'' eq input('trans_type')}
                    <option selected value="{$k}">{$v.name}</option>
                    {else}
                    <option value="{$k}">{$v.name}</option>
                    {/if}
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">物流单号</label>
            <div class="layui-input-block">
                <input name="trans_no" value='{$vo.trans_no|default=""}' required placeholder="请输入物流单号" class="layui-input">
                <p class="help-block">必填，请输入物流单号</p>
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <input type='hidden' value='{:input("top_id")}' name='top_id'>
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>确认发货</button>
        <button class="layui-btn layui-btn-danger" type='button' data-close>取消编辑</button>
    </div>
</form>

{block name='script'}
<script>
    window.form.render()
</script>
{/block}
